package com.czh.seckill.vo;


import lombok.*;

//公共返回对象枚举
@ToString
@Getter
@AllArgsConstructor

public enum RespBeanEnum {

    //通用
    SUCCESS(200, "SUCCESS"),

    ERROR(500, "服务异常"),
    GLOABL_ERROR(300, "全局异常"),

    //登录模块5002xx
    LOGIN_ERROR(500210, "用户名或密码错误"),
    MOBILE_ERROR(500211, "手机号码格式错误"),
    PASSWORD_ERROR(500211, "密码错误"),
    BIND_ERROR(500212, "参数校验异常"),
    //秒杀模块5005
    //库存为空
    EMPTY_STOCK(500500, "库存不足"),
    //重复抢购
    REPEAT_ERROR(500501, "秒杀商品不能重复抢购"),
    SESSION_ERROR(500215, "用户不存在"),
    //订单模块5003xx
    ORDER_NOT_EXIST(500300,"订单不存在"),
    ORDER_ERROR(500310,"订单异常");


    private final Integer code;
    private final String message;
}
